<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:icecore="http://www.icefaces.org/icefaces/core"
       xmlns:ace="http://www.icefaces.org/icefaces/components"
       xmlns:ice="http://www.icesoft.com/icefaces/component"
       xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title><h:form><h:outputText>#{staticPageBean.name}</h:outputText></h:form></title>
    </h:head>
    <h:body>
        <ui:composition template="WEB-INF/templates/lecture.xhtml">
            <ui:define name="content">
                <ice:form>                    
                    <ice:outputFormat escape="false"
                                      value="#{staticPageBean.content}"
                                      rendered="#{!staticPageBean.edit}"/>
                    <ice:inputRichText saveOnSubmit="true"
                                       toolbar="Basic"
                                       value="#{staticPageBean.content}"
                                       rendered="#{staticPageBean.edit}"/>
                    <ice:commandLink value="Bearbeiten"
                                     rendered="#{!staticPageBean.edit and lectureBean.hasEditRights()}"
                                     action="#{staticPageBean.toggle()}" />
                    <ice:commandLink value="Speichern"
                                     rendered="#{staticPageBean.edit and lectureBean.hasEditRights()}"
                                     action="#{staticPageBean.toggle()}" />
                </ice:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
